#include <iostream>
#include <vector>
using namespace std;

const int maxn = 1e5+5;
int n,m,a[maxn],minSum = 1e9;
vector<pair<int,int>> v;

signed main()
{
    cin>>n>>m;
    for(int i=1;i<=n;i++)    cin>>a[i];
    int i = 1,j = 1,sum = a[j];
    while(i<=n&&j<=n){
        if(sum>=m){
            if(sum<minSum){
                minSum = sum;
                v.clear();
                v.push_back({i,j});
            }
            else if(sum==minSum){
                v.push_back({i,j});
            }
            sum -= a[i];
            i++;
        }
        else{
            j++;
            sum += a[j];
        };
    }
    for(int i=0;i<v.size();i++){
        cout<<v[i].first<<"-"<<v[i].second<<"\n";
    }
    return 0;
}
